{__NOLAYOUT__}
<form style="padding:20px 20px 0 0;" class="layui-form" id="edit_form">
    <input type="hidden" name="id" value="{$info.id}" />
    <div class="layui-form-item">
        <label class="layui-form-label"><i class="required-color">*</i>账号：</label>
        <div class="layui-input-inline">
            <input name="username" value="{$info.username}" lay-verify="required" placeholder="请输入登陆账号" class="layui-input" type="text">
        </div>
        <div class="layui-form-mid layui-word-aux">字母数字或下划线,6-20位</div>
    </div>
<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">昵称：</label>-->
<!--        <div class="layui-input-inline">-->
<!--            <input name="password" value="" placeholder="请输入昵称" lay-verify="pass" class="layui-input" type="text">-->
<!--        </div>-->
<!--        <div class="layui-form-mid layui-word-aux">请填写6到16位密码</div>-->
<!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">角色：</label>
        <div class="layui-input-inline">
            <select name="group_id" id="type" lay-verify="required" >
                <option value="">请选择角色</option>
                {volist name="authGroup" id="vo"}
                <option value="{$vo.id}" {if $vo.id == $info.group_id}selected{/if}>{$vo.title}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码：</label>
        <div class="layui-input-inline">
            <input name="password" value="" placeholder="请输入密码" lay-verify="pass" class="layui-input" type="text">
        </div>
        <div class="layui-form-mid layui-word-aux">请填写6到16位密码</div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态：</label>
        <div class="layui-input-inline">
            <input type="checkbox" name="status" lay-skin="switch" {if $info.status == 1}checked{/if}  value="1" lay-text="启用|禁用">
        </div>
    </div>


</form>
<script>
    layui.use('form', function(){
        layui.form.render();
    });

</script>